package com.efast.dmom.equipment.statemach.handler.repair;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
import com.efast.cafe.framework.util.SpringWebUtils;
import com.efast.dmom.equipment.entity.EquipRepairOrder;
import com.efast.dmom.equipment.statemach.handler.base.HandleBaseProcessorService;

/**
 * @author Administrator
 * 维修单拒绝操作的扩展
 */
@Component
//@StatemachHandle(handleName="reject",configId=1010,entityName ="equip_repair_order")
public class EquipRepairOrderRejectHandler implements HandleBaseProcessorService<EquipRepairOrder> {

    @Override
    public void process(JSONObject taskBean, EquipRepairOrder bean, Map<String,JSONObject> map) {
        //设置审核人
        bean.setAuditor(SpringWebUtils.getRequestUser());
    }
}
